export default function logger({ dispatch, getState }) {
  return (next) => (action) => {
    console.log('prev state ', getState());
    console.log(action.type + ' 执行');

    const returnValue = next(action);

    console.log('next state ', getState());
    return returnValue;
  };
}
